<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:tns="http://schemas.datacontract.org/2004/07/SIPSorcery.SIP.App" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/SIPSorcery.SIP.App" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="http://localhost/Provisioning.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
  <xs:import schemaLocation="http://localhost/Provisioning.svc?xsd=xsd3" namespace="http://schemas.datacontract.org/2004/07/System" />
  <xs:complexType name="SIPDialPlan">
    <xs:sequence>
      <xs:element minOccurs="0" name="AuthorisedApps" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DialPlanName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DialPlanScript" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ExecutionCount" type="xs:int" />
      <xs:element minOccurs="0" name="Id" type="ser:guid" />
      <xs:element xmlns:q1="http://schemas.datacontract.org/2004/07/System" minOccurs="0" name="Inserted" type="q1:DateTimeOffset" />
      <xs:element xmlns:q2="http://schemas.datacontract.org/2004/07/System" minOccurs="0" name="LastUpdate" type="q2:DateTimeOffset" />
      <xs:element minOccurs="0" name="MaxExecutionCount" type="xs:int" />
      <xs:element minOccurs="0" name="Owner" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ScriptTypeDescription" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="TraceEmailAddress" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="SIPDialPlan" nillable="true" type="tns:SIPDialPlan" />
  <xs:complexType name="ArrayOfSIPDialogueAsset">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="SIPDialogueAsset" nillable="true" type="tns:SIPDialogueAsset" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfSIPDialogueAsset" nillable="true" type="tns:ArrayOfSIPDialogueAsset" />
  <xs:complexType name="SIPDialogueAsset">
    <xs:sequence>
      <xs:element minOccurs="0" name="AdminMemberId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="BridgeId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CDRId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CSeq" type="xs:int" />
      <xs:element minOccurs="0" name="CallDurationLimit" type="xs:int" />
      <xs:element minOccurs="0" name="CallId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Direction" nillable="true" type="xs:string" />
      <xs:element xmlns:q3="http://schemas.datacontract.org/2004/07/System" minOccurs="0" name="HangupAt" nillable="true" type="q3:DateTimeOffset" />
      <xs:element minOccurs="0" name="Id" type="ser:guid" />
      <xs:element xmlns:q4="http://schemas.datacontract.org/2004/07/System" minOccurs="0" name="Inserted" type="q4:DateTimeOffset" />
      <xs:element minOccurs="0" name="LocalTag" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Owner" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ProxySIPSocket" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RemoteSDP" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RemoteTag" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RemoteTarget" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RemoteUserField" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="SDP" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="SwitchboardCallerDescription" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="SwitchboardDescription" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="SwitchboardOwner" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="TransferMode" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="SIPDialogueAsset" nillable="true" type="tns:SIPDialogueAsset" />
  <xs:complexType name="ArrayOfSIPCDRAsset">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="SIPCDRAsset" nillable="true" type="tns:SIPCDRAsset" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfSIPCDRAsset" nillable="true" type="tns:ArrayOfSIPCDRAsset" />
  <xs:complexType name="SIPCDRAsset">
    <xs:sequence>
      <xs:element minOccurs="0" name="AdminMemberId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="AnsweredReason" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="AnsweredStatus" type="xs:int" />
      <xs:element xmlns:q5="http://schemas.datacontract.org/2004/07/System" minOccurs="0" name="AnsweredTime" nillable="true" type="q5:DateTimeOffset" />
      <xs:element minOccurs="0" name="BridgeId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CallDirection" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CallId" nillable="true" type="xs:string" />
      <xs:element xmlns:q6="http://schemas.datacontract.org/2004/07/System" minOccurs="0" name="Created" type="q6:DateTimeOffset" />
      <xs:element minOccurs="0" name="Dst" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DstHost" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DstURI" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Duration" type="xs:int" />
      <xs:element minOccurs="0" name="FromHeader" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="FromName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="FromUser" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="HungupReason" nillable="true" type="xs:string" />
      <xs:element xmlns:q7="http://schemas.datacontract.org/2004/07/System" minOccurs="0" name="HungupTime" nillable="true" type="q7:DateTimeOffset" />
      <xs:element minOccurs="0" name="Id" type="ser:guid" />
      <xs:element minOccurs="0" name="InProgressReason" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="InProgressStatus" type="xs:int" />
      <xs:element xmlns:q8="http://schemas.datacontract.org/2004/07/System" minOccurs="0" name="InProgressTime" nillable="true" type="q8:DateTimeOffset" />
      <xs:element xmlns:q9="http://schemas.datacontract.org/2004/07/System" minOccurs="0" name="Inserted" type="q9:DateTimeOffset" />
      <xs:element minOccurs="0" name="LocalSocket" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Owner" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RemoteSocket" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RingDuration" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="SIPCDRAsset" nillable="true" type="tns:SIPCDRAsset" />
  <xs:complexType name="ArrayOfSIPDomain">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="SIPDomain" nillable="true" type="tns:SIPDomain" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfSIPDomain" nillable="true" type="tns:ArrayOfSIPDomain" />
  <xs:complexType name="SIPDomain">
    <xs:sequence>
      <xs:element minOccurs="0" name="Domain" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Id" type="ser:guid" />
      <xs:element minOccurs="0" name="Owner" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="SIPDomain" nillable="true" type="tns:SIPDomain" />
  <xs:complexType name="ArrayOfSIPAccount">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="SIPAccount" nillable="true" type="tns:SIPAccount" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfSIPAccount" nillable="true" type="tns:ArrayOfSIPAccount" />
  <xs:complexType name="SIPAccount">
    <xs:sequence>
      <xs:element minOccurs="0" name="AdminDisabledReason" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="IPAddressACL" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Id" type="ser:guid" />
      <xs:element minOccurs="0" name="InDialPlanName" nillable="true" type="xs:string" />
      <xs:element xmlns:q10="http://schemas.datacontract.org/2004/07/System" minOccurs="0" name="Inserted" type="q10:DateTimeOffset" />
      <xs:element minOccurs="0" name="IsAdminDisabled" type="xs:boolean" />
      <xs:element minOccurs="0" name="IsIncomingOnly" type="xs:boolean" />
      <xs:element minOccurs="0" name="IsSwitchboardEnabled" type="xs:boolean" />
      <xs:element minOccurs="0" name="IsUserDisabled" type="xs:boolean" />
      <xs:element minOccurs="0" name="NetworkId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="OutDialPlanName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Owner" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="SIPDomain" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="SIPPassword" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="SIPUsername" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="SendNATKeepAlives" type="xs:boolean" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="SIPAccount" nillable="true" type="tns:SIPAccount" />
  <xs:complexType name="ArrayOfSIPRegistrarBinding">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="SIPRegistrarBinding" nillable="true" type="tns:SIPRegistrarBinding" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfSIPRegistrarBinding" nillable="true" type="tns:ArrayOfSIPRegistrarBinding" />
  <xs:complexType name="SIPRegistrarBinding">
    <xs:sequence>
      <xs:element minOccurs="0" name="ContactURI" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Expiry" type="xs:int" />
      <xs:element minOccurs="0" name="Id" type="ser:guid" />
      <xs:element xmlns:q11="http://schemas.datacontract.org/2004/07/System" minOccurs="0" name="LastUpdate" type="q11:DateTimeOffset" />
      <xs:element minOccurs="0" name="MangledContactURI" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Owner" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ProxySIPSocket" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Q" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RegistrarSIPSocket" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RemoteSIPSocket" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="SIPAccountName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UserAgent" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="SIPRegistrarBinding" nillable="true" type="tns:SIPRegistrarBinding" />
  <xs:complexType name="ArrayOfSIPProvider">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="SIPProvider" nillable="true" type="tns:SIPProvider" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfSIPProvider" nillable="true" type="tns:ArrayOfSIPProvider" />
  <xs:complexType name="SIPProvider">
    <xs:sequence>
      <xs:element minOccurs="0" name="CustomHeaders" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Id" type="ser:guid" />
      <xs:element xmlns:q12="http://schemas.datacontract.org/2004/07/System" minOccurs="0" name="Inserted" type="q12:DateTimeOffset" />
      <xs:element xmlns:q13="http://schemas.datacontract.org/2004/07/System" minOccurs="0" name="LastUpdate" type="q13:DateTimeOffset" />
      <xs:element minOccurs="0" name="Owner" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ProviderAuthUsername" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ProviderFrom" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ProviderName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ProviderOutboundProxy" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ProviderPassword" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ProviderServer" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ProviderUsername" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RegisterAdminEnabled" type="xs:boolean" />
      <xs:element minOccurs="0" name="RegisterContact" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RegisterDisabledReason" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RegisterEnabled" type="xs:boolean" />
      <xs:element minOccurs="0" name="RegisterExpiry" type="xs:int" />
      <xs:element minOccurs="0" name="RegisterRealm" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RegisterServer" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="SIPProvider" nillable="true" type="tns:SIPProvider" />
  <xs:complexType name="ArrayOfSIPProviderBinding">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="SIPProviderBinding" nillable="true" type="tns:SIPProviderBinding" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfSIPProviderBinding" nillable="true" type="tns:ArrayOfSIPProviderBinding" />
  <xs:complexType name="SIPProviderBinding">
    <xs:sequence>
      <xs:element minOccurs="0" name="BindingExpiry" type="xs:int" />
      <xs:element minOccurs="0" name="BindingURI" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Id" type="ser:guid" />
      <xs:element minOccurs="0" name="IsRegistered" type="xs:boolean" />
      <xs:element xmlns:q14="http://schemas.datacontract.org/2004/07/System" minOccurs="0" name="LastRegisterAttempt" nillable="true" type="q14:DateTimeOffset" />
      <xs:element xmlns:q15="http://schemas.datacontract.org/2004/07/System" minOccurs="0" name="LastRegisterTime" nillable="true" type="q15:DateTimeOffset" />
      <xs:element xmlns:q16="http://schemas.datacontract.org/2004/07/System" minOccurs="0" name="NextRegistrationTime" type="q16:DateTimeOffset" />
      <xs:element minOccurs="0" name="Owner" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ProviderId" type="ser:guid" />
      <xs:element minOccurs="0" name="ProviderName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RegistrarSIPSocket" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RegistrationFailureMessage" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="SIPProviderBinding" nillable="true" type="tns:SIPProviderBinding" />
  <xs:complexType name="ArrayOfSIPDialPlan">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="SIPDialPlan" nillable="true" type="tns:SIPDialPlan" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfSIPDialPlan" nillable="true" type="tns:ArrayOfSIPDialPlan" />
</xs:schema>